<?php

declare(strict_types=1);

namespace App\Marketing\Model;

use Mine\MineModel;

/**
 * @property int $id 主键
 * @property \Carbon\Carbon $created_at 创建时间
 * @property int $user_id 用户id
 * @property int $box_id 盒子id
 * @property int $num 数量
 * @property string $amount 金额
 * @property int $type 1奖金2奖品
 * @property array $refunded 奖金
 */
class MarketingBlindBoxLog extends MineModel
{
    public const UPDATED_AT = null;
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'marketing_blind_box_log';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = ['id', 'created_at', 'user_id', 'box_id', 'num', 'amount', 'type', 'refunded'];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = ['id' => 'integer', 'created_at' => 'datetime', 'user_id' => 'integer', 'box_id' => 'integer', 'num' => 'integer', 'amount' => 'decimal:2', 'type' => 'integer', 'refunded' => 'array'];
}
